package main

import "fmt"

func multi0(a, b int) int {
	fmt.Println(a)
	fmt.Println(b)
	return 1
}

func multi1(a, b int) (int, int) {
	fmt.Println(a)
	fmt.Println(b)
	return 1, 2
}

func multi2(a, b int) (r1 int, r2 int) {
	fmt.Println(a)
	fmt.Println(b)
	r1 = 100
	r2 = 200
	return
}

func multi3(a, b int) (r1, r2 int) {
	// r1, r2 属于函数内形参  默认0值  外面没法访问
	fmt.Println(r1, r2)
	fmt.Println(b)
	r1 = 1
	r2 = 2
	return
}

func main4() {
	c := multi0(1, 2)
	ret1, ret2 := multi1(1, 2)
	ret3, ret4 := multi2(1, 2)
	ret5, ret6 := multi3(1, 2)
	multi3(1, 2)
	fmt.Println(c, ret1, ret2, ret3, ret4, ret5, ret6 /* r1, r2 */) // r1, r2 属于函数内形参  默认0值  外面没法访问
}
